package com.sky.service.impl;

import com.sky.domain.Workload;
import com.sky.domain.WorkloadStat;
import com.sky.dto.WorkloadQueryDto;
import com.sky.mapper.WorkLoadMapper;
import com.sky.service.WorkLoadService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author sky
 * @create 2021-07-20 17:12
 */
@Service
public class WorkLoadServiceImpl implements WorkLoadService {

    @Autowired
    private WorkLoadMapper workLoadMapper;

    @Override
    public List<Workload> queryWorkload(WorkloadQueryDto workloadQueryDto) {
        return this.workLoadMapper.queryWorkload(workloadQueryDto);
    }

    @Override
    public List<WorkloadStat> queryWorkloadStat(WorkloadQueryDto workloadQueryDto) {
        return this.workLoadMapper.queryWorkloadStat(workloadQueryDto);
    }
}
